package client.whiteboard.view;
import javax.swing.JFrame;

import client.whiteboard.controller.GUIController;
public class View extends JFrame
{
	private GUI _gui;
	private Display _display;
	private int _width;
	private int _height;
	public View()
	{
		//setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		_display = new Display();
		_gui = new GUI();
		add(_display);
		add(_gui);
		this.setVisible(true);
		setSize(500, 550);
		this.setResizable(false);
	}
	public GUI getGUI()
	{
		return _gui;
	}
	public Display getDisplay()
	{
		return _display;
	}
	public void update() {
		_display.update();
		_gui.update();
	}
}
